import contract from '@/api/eims/contract'
import customer from '@/api/crm/customerAPI'
import system from '@/api/system'
import Mixins from '@/views/mixins'
export default {
  mixins: [Mixins],
  methods: {
    getRequestType (opt) {
      if (opt === 'getContractInfo') {
        return contract.getContractInfoAPI
      } else if (opt === 'getContractFileList') {
        return contract.getContractFileListAPI
      } else if (opt === 'getContractAttachmentList') {
        return contract.getContractAttachmentListAPI
      } else if (opt === 'saveContract') {
        return contract.saveContractAPI
      } else if (opt === 'updateContract') {
        return contract.updateContractAPI
      } else if (opt === 'updateContractFile') {
        return contract.updateContractFileAPI
      } else if (opt === 'downloadContractFile') {
        return contract.downloadContractFileAPI
      } else if (opt === 'deleteContractFile') {
        return contract.deleteContractFileAPI
      } else if (opt === 'deleteContractAttachment') {
        return contract.deleteContractAttachmentAPI
      } else if (opt === 'submitContract') {
        return contract.submitContractInfoAPI
      } else if (opt === 'cancelContract') {
        return contract.cancelContractInfoAPI
      } else if (opt === 'rejectContract') {
        return contract.rejectContractInfoAPI
      } else if (opt === 'passContract') {
        return contract.passContractInfoAPI
      } else if (opt === 'saveContractSigner') {
        return contract.saveContractSignerAPI
      } else if (opt === 'deleteContractSigner') {
        return contract.deleteContractSignerAPI
      } else if (opt === 'getContractFileSignerList') {
        return contract.getContractFileSignerListAPI
      } else if (opt === 'getCompanyInfo') {
        return system.getCompanyInfoAPI
      } else if (opt === 'getCustomerInfo') {
        return customer.getCustomerInfoAPI
      } else if (opt === 'generateContractFile') {
        return contract.generateContractFileAPI
      } else if (opt === 'initiateConfirmContractFile') {
        return contract.initiateConfirmContractFileAPI
      } else if (opt === 'signingConfirmContract') {
        return contract.signingConfirmContractAPI
      }
    }
  }
}
